import 'package:t3_data_service/biz_data_source/map/address/poi_search/poi_search.dart';
import 'package:uikit/uikit.dart';

import '../../configs/address_select_config.dart';
import '../widget/search_bar/input_item.dart';
import 'poi_search_cell_view_model.dart';

typedef FirstRespItemGetter = InputItem? Function();
typedef IsEndPointGetter = bool Function();

class POISearchBarViewModel extends ViewModel {
  var currentSelectedModel = POISearchCellViewModel(
    POIModel(location: const LatLng(0, 0),),
      AddressSelectConfig(location: T3POILocation(adCode: '', cityName: '', coordinate: LatLng(0, 0))
      )).obs;

  updateSelectedModel(POISearchCellViewModel model) {
    currentSelectedModel.value = model;
  }

  FirstRespItemGetter? firstRespInputItemGetter;
  IsEndPointGetter? isEndPointGetter;

  int currentPois = 0;
}